var statisticsListVue = new Vue({
	el: "body",
	data: {
	   userid:""
	},
	created:function  () {
		_this=this;
		_this.userid = getUrlItem("userid")
	},
	methods: {
		getWeekTotal: function() {
			location.href = "statisticsTotal.html?userid="+_this.userid
		},
		selfSelect:function  () {
			location.href="statisticsChart.html"
		}
	}
})

$(function() {
	FastClick.attach(document.body);
});


function getUrlItem(name) { //id
	var url = location.search
	start = url.indexOf(name + "=")
	if(start != -1) {
		start = start + name.length + 1
		end = url.indexOf("&", start)
		if(end == -1) {
			end = url.length
			return unescape(url.substring(start, end))
		}
		return unescape(url.substring(start, end))
	}
	return '';
}